Auto merge of #3794 - alexcrichton:better-errors, r=matklad
authorbors <bors@rust-lang.org>
Wed, 8 Mar 2017 19:21:14 +0000 (19:21 +0000)
committerbors <bors@rust-lang.org>
Wed, 8 Mar 2017 19:21:14 +0000 (19:21 +0000)
commit64339d89f3c2b16db610862c15d08b6eeaed5e69
tree1725d07c500c20b951fed88db44e1be3347efc03
parent08069531d7f8d375b4b946151badfb8f70890aa3
parentcb53e1b2056a02bd1eb83d926e1cc37e56180368
Auto merge of #3794 - alexcrichton:better-errors, r=matklad

Improve TOML decoding error messages

Unfortunately while `#[serde(untagged)]` is precisely what we want in terms of
semantics it leaves a little to be desired in terms of error messages. This
commit updates to remove the usage of that attribute in favor of implementing
`Deserialize` directly, which is quite simple in these few cases.

Closes #3790